.class public Lcom/example/zsccpsapp/LoginActivity;
.super Landroid/app/Activity;
.source "LoginActivity.java"


# instance fields
.field private LayoutName:Landroid/widget/LinearLayout;

.field private Layoutpassword:Landroid/widget/LinearLayout;

.field et1:Landroid/widget/EditText;

.field et2:Landroid/widget/EditText;

.field public h:Landroid/os/Handler;

.field private imageName:Landroid/widget/ImageView;

.field private imagePass:Landroid/widget/ImageView;

.field m:Lmyapp/MyApp;

.field private mDeviceID:Ljava/lang/String;

.field public mcontext:Landroid/content/Context;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 39
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 41
    iput-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->h:Landroid/os/Handler;

    .line 43
    iput-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->et1:Landroid/widget/EditText;

    .line 44
    iput-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->et2:Landroid/widget/EditText;

    .line 45
    iput-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->m:Lmyapp/MyApp;

    .line 39
    return-void
.end method

.method static synthetic access$0(Lcom/example/zsccpsapp/LoginActivity;)V
    .locals 0

    .prologue
    .line 209
    invoke-direct {p0}, Lcom/example/zsccpsapp/LoginActivity;->initState()V

    return-void
.end method

.method static synthetic access$1(Lcom/example/zsccpsapp/LoginActivity;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->LayoutName:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/zsccpsapp/LoginActivity;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 51
    iget-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->imageName:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/zsccpsapp/LoginActivity;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 49
    iget-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->Layoutpassword:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/zsccpsapp/LoginActivity;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->imagePass:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/zsccpsapp/LoginActivity;)V
    .locals 0

    .prologue
    .line 142
    invoke-direct {p0}, Lcom/example/zsccpsapp/LoginActivity;->login()V

    return-void
.end method

.method private initState()V
    .locals 3

    .prologue
    const v2, 0x7f02001a

    .line 210
    iget-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->LayoutName:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 211
    iget-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->imageName:Landroid/widget/ImageView;

    const v1, 0x7f02001c

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 212
    iget-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->Layoutpassword:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 213
    iget-object v0, p0, Lcom/example/zsccpsapp/LoginActivity;->imagePass:Landroid/widget/ImageView;

    const v1, 0x7f02001e

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 214
    return-void
.end method

.method private login()V
    .locals 1

    .prologue
    .line 144
    new-instance v0, Lcom/example/zsccpsapp/LoginActivity$5;

    invoke-direct {v0, p0}, Lcom/example/zsccpsapp/LoginActivity$5;-><init>(Lcom/example/zsccpsapp/LoginActivity;)V

    .line 206
    invoke-virtual {v0}, Lcom/example/zsccpsapp/LoginActivity$5;->start()V

    .line 207
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 55
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 56
    const v2, 0x7f030001

    invoke-virtual {p0, v2}, Lcom/example/zsccpsapp/LoginActivity;->setContentView(I)V

    .line 57
    iput-object p0, p0, Lcom/example/zsccpsapp/LoginActivity;->mcontext:Landroid/content/Context;

    .line 58
    const v2, 0x7f0b0001

    invoke-virtual {p0, v2}, Lcom/example/zsccpsapp/LoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->et1:Landroid/widget/EditText;

    .line 59
    const v2, 0x7f0b0002

    invoke-virtual {p0, v2}, Lcom/example/zsccpsapp/LoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->et2:Landroid/widget/EditText;

    .line 60
    const v2, 0x7f0b0004

    invoke-virtual {p0, v2}, Lcom/example/zsccpsapp/LoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    iput-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->LayoutName:Landroid/widget/LinearLayout;

    .line 61
    const v2, 0x7f0b0006

    invoke-virtual {p0, v2}, Lcom/example/zsccpsapp/LoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    iput-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->Layoutpassword:Landroid/widget/LinearLayout;

    .line 62
    const v2, 0x7f0b0005

    invoke-virtual {p0, v2}, Lcom/example/zsccpsapp/LoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->imageName:Landroid/widget/ImageView;

    .line 63
    const v2, 0x7f0b0007

    invoke-virtual {p0, v2}, Lcom/example/zsccpsapp/LoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->imagePass:Landroid/widget/ImageView;

    .line 65
    iget-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->et1:Landroid/widget/EditText;

    new-instance v3, Lcom/example/zsccpsapp/LoginActivity$1;

    invoke-direct {v3, p0}, Lcom/example/zsccpsapp/LoginActivity$1;-><init>(Lcom/example/zsccpsapp/LoginActivity;)V

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 81
    iget-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->et2:Landroid/widget/EditText;

    new-instance v3, Lcom/example/zsccpsapp/LoginActivity$2;

    invoke-direct {v3, p0}, Lcom/example/zsccpsapp/LoginActivity$2;-><init>(Lcom/example/zsccpsapp/LoginActivity;)V

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 96
    invoke-virtual {p0}, Lcom/example/zsccpsapp/LoginActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    check-cast v2, Lmyapp/MyApp;

    iput-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->m:Lmyapp/MyApp;

    .line 97
    iget-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v2}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 98
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 99
    invoke-virtual {p0}, Lcom/example/zsccpsapp/LoginActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    const-string v3, "android_id"

    invoke-static {v2, v3}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->mDeviceID:Ljava/lang/String;

    .line 101
    new-instance v2, Lcom/example/zsccpsapp/LoginActivity$3;

    invoke-direct {v2, p0}, Lcom/example/zsccpsapp/LoginActivity$3;-><init>(Lcom/example/zsccpsapp/LoginActivity;)V

    iput-object v2, p0, Lcom/example/zsccpsapp/LoginActivity;->h:Landroid/os/Handler;

    .line 130
    const v2, 0x7f0b0003

    invoke-virtual {p0, v2}, Lcom/example/zsccpsapp/LoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    .line 131
    .local v1, "btn":Landroid/widget/Button;
    new-instance v2, Lcom/example/zsccpsapp/LoginActivity$4;

    invoke-direct {v2, p0}, Lcom/example/zsccpsapp/LoginActivity$4;-><init>(Lcom/example/zsccpsapp/LoginActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 140
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 5
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v4, 0x0

    .line 217
    const/4 v2, 0x4

    if-ne p1, v2, :cond_2

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v2

    if-nez v2, :cond_2

    .line 218
    invoke-virtual {p0}, Lcom/example/zsccpsapp/LoginActivity;->getApplication()Landroid/app/Application;

    move-result-object v2

    check-cast v2, Lmyapp/MyApp;

    .line 219
    invoke-virtual {v2}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    .line 220
    .local v1, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_1

    .line 221
    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-nez v3, :cond_3

    .line 228
    :cond_1
    invoke-static {v4}, Ljava/lang/System;->exit(I)V

    .line 231
    .end local v1    # "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    :cond_2
    return v4

    .line 221
    .restart local v1    # "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    :cond_3
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    .line 222
    .local v0, "activity":Landroid/app/Activity;
    if-eqz v0, :cond_0

    .line 223
    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    goto :goto_0
.end method
